package net.crowdloud.client.tags;

import net.crowdloud.client.GlobalVariables;
import net.crowdloud.shared.entities.Tags;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class GetTags {

	public GetTags() {

		final TagsDatabaseServerCallsAsync databaseServerCalls = GWT
				.create(TagsDatabaseServerCalls.class);

		databaseServerCalls.getTags(new AsyncCallback<Tags>() {

			public void onSuccess(Tags tags) {

				GlobalVariables.tags = tags;
			}

			public void onFailure(Throwable caught) {
				// Show the RPC error message to the user

			}

		});

	}

}
